<template>
  <div></div>
</template>

<script setup lang="js">
import { onMounted, onActivated, onDeactivated, } from "vue"

defineOptions({
  name: "Index"
});

onMounted(() => {
  console.log(`onMounted生命周期执行了`)
})

onActivated(() => {
  console.log("onActivated进入页面");
});

onDeactivated(() => {
  console.log("onDeactivated离开页面");
});
</script>
<style scoped lang="scss"></style>
